package com.azier.kapacitor.script.node.nodebind;

import com.azier.kapacitor.script.node.BarrierNode;
import com.azier.kapacitor.script.node.Node;

/**
* 1 * @Author: luoj
* 2 * @Date: 2019/11/8 11:27
* 3
*/

/**
Create a new Barrier node that emits a BarrierMessage periodically
**/

/**
创建一个新的Barrier节点，该节点定期发出BarrierMessage
**/
public interface BarrierNodeBind extends Node {
    /**
    Create a new Barrier node that emits a BarrierMessage periodically
    **/
    /**
    创建一个新的Barrier节点，该节点定期发出BarrierMessage
    **/
    default BarrierNode barrier(){
        BarrierNode nextNode = new BarrierNode();
        this.setNextNode(nextNode);
        nextNode.zetHeadNode(this.getHeadNode());
        return nextNode;
    }
}